<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户账户信息</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 20px;
        }
        .container {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            margin: 0 auto;
        }
        .account-info {
            margin-bottom: 20px;
        }
        .account-info p {
            margin: 5px 0;
            font-size: 16px;
        }
        .account-info strong {
            color: #333;
        }
        .buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .button {
            background-color: #007bff;
            color: #fff;
            border: none;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
        }
        .button:hover {
            background-color: #0056b3;
        }
        .welcome-message, .change-password {
            font-size: 14px;
            color: #6c757d;
            text-align: center;
            margin-top: 20px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="account-info">
        <p>
            <strong>卡号:</strong><span th:text="${session.login.cardno}"></span>
            <a href="javascript:void(0);" th:href="@{'/logout'}">退出登录</a>
        </p>
        <!-- 您可以根据需要添加更多账户信息 -->
    </div>
    <div class="buttons">
        <button class="button" onclick="alert('查询交易记录功能尚未实现')">查询余额</button>
        <button class="button" onclick="window.location.href='/toAccounts'" th:href="@{'/toAccounts'}">转账</button>
        <button class="button" onclick="window.location.href='/transaction'" th:href="@{'/transaction'}">查询交易记录</button>
    </div>
    <div class="welcome-message">
        欢迎使用个人网上银行
    </div>
    <div class="change-password">
        <a href="#" onclick="alert('修改密码功能尚未实现')">修改密码</a>
    </div>
</div>
</body>
</html>